<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">
    <h1>价格：{{price}}</h1>
    <h1>添加加个符号：{{price|myCurrency('￥')}}</h1>
</div>
<script>
    var vm = new Vue({
        el: '#app',
        data: {
           price:356
        },
        filters:{
            myCurrency:function (myInput,arg1) {
                var result=arg1+myInput;
                return result;
            }
        }
    });
</script>
</body>
</html>